#!/usr/bin/env python
# coding: utf-8

import csv
from hashlib import sha1

arq_ent = open('votos.csv')
arq_sai = open('votos-sha1.csv', 'w')
csv_sai = csv.writer(arq_sai)

for i, lin in enumerate(csv.reader(arq_ent)):
    if i > 0: # substituir e-mail por hash
        lin[2] = sha1(lin[2]).hexdigest()
    csv_sai.writerow(lin)

arq_ent.close()
arq_sai.close()

